package com.Ritany3.subject.domain.convert;



import com.Ritany3.subject.domain.entity.SubjectCategoryBO;
import com.Ritany3.subject.domain.entity.SubjectInfoBO;
import com.Ritany3.subject.domain.entity.SubjectOptionBO;
import com.Ritany3.subject.infra.basic.entity.SubjectCategory;
import com.Ritany3.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoConverter {
    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);
    SubjectInfo converBoToInfo(SubjectInfoBO subjectInfoBO);

    SubjectInfoBO converOptionToBO(SubjectOptionBO subjectOptionBO);

    SubjectInfoBO converOptionAndInfoToBO(SubjectOptionBO subjectOptionBO,SubjectInfo subjectInfo);
    List<SubjectInfoBO> converListToBO(List<SubjectInfo> subjectInfoList);

}
